package com.yhyvr.pojo.req.api.store.order;

import com.yhyvr.pojo.req.api.ApiReqBody;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * Created by tech6 on 2016/10/20.
 */
public class ApiUnifiedorderReq extends ApiReqBody{


    @NotBlank
    private String goodsId;
    @Min(1)
    @NotNull
    private Integer goodsNumber;
    @NotBlank
    private String shippingAddressId;
    /**
     * 优惠参数
     */
    private String privilegeSign;
    /**
     * 订单类型默认是2
     */
    private int orderType =2;
    public String getPrivilegeSign() {
        return privilegeSign;
    }

    public void setPrivilegeSign(String privilegeSign) {
        this.privilegeSign = privilegeSign;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(Integer goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public String getShippingAddressId() {
        return shippingAddressId;
    }

    public int getOrderType() {
        return orderType;
    }

    public void setOrderType(int orderType) {
        this.orderType = orderType;
    }

    public void setShippingAddressId(String shippingAddressId) {
        this.shippingAddressId = shippingAddressId;
    }
}
